<?php $key = 'bd8e6f05d9555af5d945c647a70995f1'; $cs=sha1($key.$_GET['session'].'.'.$_GET['order_no'].'.'.$_GET['status']);$flag='2';if($cs == $_GET['checksum'] && $_GET['status'] == 1){	$out = fopen('invoiceGET.txt', 'a');  	fwrite($out, "\r\nDate: ".date("Y-m-d H:i:s"));	fwrite($out, "\r\nREMOTE ADDR (expect 118.69.206.8) : ".$_SERVER['REMOTE_HOST']);	fwrite($out, "\r\nOrderNo: ".$_GET['order_no']);	fwrite($out, "\r\nState: ".$_GET['status']);	fwrite($out, "\r\n");	fclose($out);               $flag='1';}else{	$out = fopen('invoiceGET.txt', 'a');  	fwrite($out, "\r\nDate: ".date("Y-m-d H:i:s"));	fwrite($out, "\r\nREMOTE ADDR (expect 118.69.206.8) : ".$_SERVER['REMOTE_HOST']);	fwrite($out, "\r\nChecksum sai");	fwrite($out, "\r\n");	fclose($out);}$link='http://chomoionline.com/thong-bao-giao-dich/'.$cs.$_GET['status'].$flag.'/'.$_GET['order_no'];header('Location: '.$link);exit;?>